-- thundercloud
-- created by zhuangsl
-- 雷电云

return {
    fetchProps = function(who, status, condition)
        local endRound = condition["end_round"];
        local propId = PropM.getPropId("auto_cast");
        local key = condition["key"];
        local skillId = condition["skill_id"];
        local props = { { propId, key, skillId, endRound,} };

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        -- 效果
        local key = condition["key"];
        local skillId = condition["skill_id"];

        desc = string.gsub(desc, "{round}", key);
        desc = string.gsub(desc, "{skill}", SkillM.query(skillId, "name"));

        return desc;
    end,
};
